package org.jeecg.modules.demo.totaldividendamount.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.totaldividendamount.entity.TotalDividendAmount;
import org.jeecg.modules.demo.totaldividendamount.mapper.TotalDividendAmountMapper;
import org.jeecg.modules.demo.totaldividendamount.service.ITotalDividendAmountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 总分红金额
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class TotalDividendAmountServiceImpl extends ServiceImpl<TotalDividendAmountMapper, TotalDividendAmount> implements ITotalDividendAmountService {
    @Resource
    private TotalDividendAmountMapper totalDividendAmountMapper;

    // 根据股东Id查询
    @Override
    public IPage<TotalDividendAmount> getByStockId(Page<TotalDividendAmount> page, String stockId) {
        return totalDividendAmountMapper.getByStockId(page, stockId);
    }
}
